projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b140884
)
demos: Use gtk_size_request_get_size() instead gtk_widget_size_request()
author
Javier Jardón
<jjardon@gnome.org>
Wed, 15 Sep 2010 01:13:58 +0000
(
03:13
+0200)
committer
Javier Jardón
<jjardon@gnome.org>
Wed, 15 Sep 2010 01:14:34 +0000
(
03:14
+0200)
demos/testpixbuf-scale.c
patch
|
blob
|
history
diff --git
a/demos/testpixbuf-scale.c
b/demos/testpixbuf-scale.c
index 50244e4f725075da02b7e12bec3e2e2c35d8d242..3eb9b0abfac208b2fc46bd47c2fa2d017af3055f 100644
(file)
--- a/
demos/testpixbuf-scale.c
+++ b/
demos/testpixbuf-scale.c
@@
-141,7
+141,8
@@
main(int argc, char **argv)
gtk_widget_show_all (vbox);
/* Compute the size without the drawing area, so we know how big to make the default size */
- gtk_widget_size_request (vbox, &scratch_requisition);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (vbox),
+ &scratch_requisition, NULL);
darea = gtk_drawing_area_new ();
gtk_box_pack_start (GTK_BOX (vbox), darea, TRUE, TRUE, 0);